package dictionary;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class openTest {
	
	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testOpen() {
		open f=new open();
		String[] str= {"test.txt"};
		byte[] data=f.open(str);
		String s = new String(data).trim();
		assertEquals("java201621123036	 sdsd",s);
	}
	
	@Test
	public void testOpen1() {
		open f=new open();
		String[] str= {"app.txt"};
		byte[] data=f.open(str);
		String s = new String(data).trim();
		
	}
	
	@Test
	public void testGeti() {
		open f=new open();
		String[] str= {"test.txt"};
		byte[] data=f.open(str);
		assertEquals(22,f.geti());
	}
}
